package cn.teleware.api.dto;

import lombok.Getter;

/**
 * @author : hongsw
 * @date : 2020-11-12-9:38
 * @descriptions :
 */
@Getter
public enum ResultCode {
    /**
     * 请求成功
     */
    SUCCESS(200, "成功"),
    /**
     * 请求失败
     */
    FAILED(404, "失败");

    private final Integer code;
    private final String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
